<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>网站首页 - 网络测试</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/css/main.css">
    <style media="screen">
        .bottom{
            font-size: 16px;
            line-height: 32px;
        }
    </style>
</head>
<body>
    <div id="app306">
        <div class="f-top">
            <div class="f-top-left">
                <a class="f-top-left-a" href="/index.html">
                    <i>&#xe60c;</i> 返回上级
                </a>
                <div class="f-top-bread">
                    <a href="/index.html">系统中心</a> &nbsp;>&nbsp; 网络检测
                </div>
            </div>
        </div>

        <div class="f-container">
            <div class="bottom">
                <p class="keleyivisitorip"></p>
                <p class="remote_ip"></p>
                <p class="remote_ip1"></p>
                <p class="remote_ip2"></p>
                <p class="remote_ipv6"></p>
                <p class="remote_ipv6_lsy"></p>
                <p class="remote_ipv6_cz88"></p>
                <p class="remote_ipv6_ddnspod"></p>
                <p class="ipv4"></p>
                <p class="ipv6"></p>
                <p class="ua"></p>
                <p class="screen"></p>
                <p class="browserout"></p>
                <p class="browserinner"></p>
                <p class="host"></p>
                <span style="border-bottom:1px solide #558;"></span>
            </div>
        </div>
    </div>
</body>
</html>
<script type="text/javascript" src="/static/js/get_local_ips.js"></script>
<script type="text/javascript" src="//mirror.fe80.cn/jquery/3.6.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/js/rtc.js"></script>
<!-- <script src="//pv.sohu.com/cityjson?ie=utf-8"></script> -->
<script type="text/javascript">
    var userAgent = window.navigator.userAgent;//.toLowerCase();
    $(".ua").text(userAgent);
    $(".screen").text("屏幕宽"+window.screen.width+",屏幕高"+window.screen.height);
    $(".browserout").text("浏览器宽"+window.outerWidth+",浏览器高"+window.outerHeight);
    $(".browserinner").text("浏览器内宽"+window.innerWidth+",浏览器内高"+window.innerHeight);
    $.each(window.location,function(index,item){
        if(item!=""&&typeof(item)=="string")
        $(".bottom").append('<p class="location">'+index+"："+item+'</p>')
    });
    var tparam6 = '';
    // var collect = setTimeout(function(){
    //     var param = {};
    //     param.ipv4 = $(".ipv4").text();
    //     param.ipv6 = $(".ipv6").text();
    //     tparam6 = param.ipv6;
    // },500);
    var callback = function(res){
        $('.remote_ipv6').text('公网IPv6: ' + res.ip);
    }
        
    function ShowIPAddr(ipv6,aa,m){
        $('.remote_ipv6_cz88').text('公网IPv6(cz88): ' + ipv6 + '，' + m);
    }
    // 本站服务器信息
    var req = new XMLHttpRequest();
    req.open('GET',location.href, false);req.send(null);
    var headers_0 = req.getAllResponseHeaders('server');
    var headerx = headers_0.split('\n');
    var headers = [];
    $.each(headerx,function(key,value){
        $(".bottom").append('<p class="location">'+value+'</p>')
    });

    // 从又拍云获取服务器信息
    var req = new XMLHttpRequest();
    req.open('HEAD','//cdn.fe80.cn/', false);
    req.send(null);
    var headers_2 = req.getResponseHeader('X-Remote-IP');
    $(".remote_ip").text('又拍云提供： '+headers_2);

    // 自建服务器提供
    var req = new XMLHttpRequest();
    req.open('GET','https://i.fe80.cn/ip', false);
    req.send(null);
    $(".remote_ip1").text('自建服务器提供： '+req.responseText);

    $.get('//v6.ip.zxinc.org/info.php?type=json',function(res){
        $('.remote_ip2').text('zxinc提供: ' + res.data.myip + '，' + res.data.location);
    });
</script>